<!-- 分页公共CSS -->
{css href="__STATIC__/admin/public/css/page-common__MIN__.css"}

{include file="bread" management="网站栏目管理" module="基本信息" /}

<div class="container">
    <form class="web-form" onsubmit="return false">
        <div class="web-form-item">
            <label class="web-form-label" for="title">网站标题</label>
            <input id="title" class="web-form-input" type="text" name="title" placeholder="输入网站标题" autocomplete="off" value="{$data.title}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="icon">小图标</label>
            <input id="icon" class="web-form-input web-form-file" type="file" name="icon" accept="image/*" onchange="fileReader(this, 'preview_icon')" />
            <img id="preview_icon" class="web-form-img" src="__UPLOADS__/web/{$data.icon}" title="上传小图标" init-src="__UPLOADS__/admin/web/{$data.icon}" onclick="$('#icon').click()" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="logo">网站LOGO</label>
            <input id="logo" class="web-form-input web-form-file" type="file" name="logo" accept="image/*" onchange="fileReader(this, 'preview_logo')" />
            <img id="preview_logo" class="web-form-img" src="__UPLOADS__/web/{$data.logo}" title="上传LOGO" init-src="__UPLOADS__/web/{$data.logo}" onclick="$('#logo').click()" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="keywords">网站关键词</label>
            <textarea id="keywords" class="web-form-input web-form-textarea" name="keywords" placeholder="输入网站关键词" autocomplete="off">{$data.keywords}</textarea>
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="description">网站描述</label>
            <textarea id="description" class="web-form-input web-form-textarea" name="description" placeholder="输入网站描述" autocomplete="off">{$data.description}</textarea>
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="name">公司名称</label>
            <input id="name" class="web-form-input" type="text" name="name" placeholder="输入公司名称" autocomplete="off" value="{$data.name}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="telephone">联系电话</label>
            <input id="telephone" class="web-form-input" type="text" name="telephone" placeholder="输入联系电话" autocomplete="off" value="{$data.telephone}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="fax">传真电话</label>
            <input id="fax" class="web-form-input" type="text" name="fax" placeholder="输入传真电话" autocomplete="off" value="{$data.fax}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="addr">公司地址</label>
            <input id="addr" class="web-form-input" type="text" name="addr" placeholder="输入公司地址" autocomplete="off" value="{$data.addr}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="zip_code">邮编</label>
            <input id="zip_code" class="web-form-input" type="text" name="zip_code" placeholder="输入邮编" autocomplete="off" value="{$data.zip_code}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="put_on_record">网站备案</label>
            <input id="put_on_record" class="web-form-input" type="text" name="put_on_record" placeholder="输入网站备案" autocomplete="off" value="{$data.put_on_record}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="copyright">网站版权</label>
            <input id="copyright" class="web-form-input" type="text" name="copyright" placeholder="输入网站版权" autocomplete="off" value="{$data.copyright}" />
            <div class="web-form-icons">
                <i class="far fa-times-circle"></i>
                <i class="far fa-check-circle"></i>
            </div>
            <p class="modal_frame-form-prompt"></p>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="brief_introduction">公司简介</label>
            <script id="brief_introduction" class="model_frame-form-ueditor" type="text/plain" name="brief_introduction">{$data.brief_introduction|raw}</script>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="development">发展经历</label>
            <script id="development" class="model_frame-form-ueditor" type="text/plain" name="development">{$data.development|raw}</script>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="service">服务网络</label>
            <script id="service" class="model_frame-form-ueditor" type="text/plain" name="service">{$data.service|raw}</script>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="winning">获奖资质</label>
            <script id="winning" class="model_frame-form-ueditor" type="text/plain" name="winning">{$data.winning|raw}</script>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="work">工作机会</label>
            <script id="work" class="model_frame-form-ueditor" type="text/plain" name="work">{$data.work|raw}</script>
        </div>
        <div class="web-form-item">
            <label class="web-form-label" for="contact">联系我们</label>
            <script id="contact" class="model_frame-form-ueditor" type="text/plain" name="contact">{$data.contact|raw}</script>
        </div>
        <div class="web-form-item">
            <button class="web-form-submit" type="submit" onclick="onSubmit(this)" title="提交">提交</button>
        </div>
    </form>
</div>

<!-- UEditor -->
{js href="__STATIC__/admin/public/ueditor/ueditor.config.js, __STATIC__/admin/public/ueditor/ueditor.all.js" /}
<!-- 私有JS -->
<script type="text/babel" src="__STATIC__/admin/js/web__MIN__.js"></script>
<script type="text/babel">
    // 设置配置
    setConfig({
        // 上传资源路径
        UPLOADS: '__UPLOADS__/admin/web/',
        // 上传地址
        UPLOADURL: '{:Url('admin/Web/upload')}',
        // 请求地址
        URL: '{:Url('admin/Web/update')}'
    });
</script>